package com.springboot.util;
import com.springboot.controller.UploadExcelServlet;
import com.springboot.controller.testServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @ description:Servlet注册
 * @ param     :
 * @ return    :
 * @ date       :2020/12/21

*/

@Configuration
public class ServletConfig {
    @Bean
    public ServletRegistrationBean MyServlet0() {
        return new ServletRegistrationBean(new testServlet(), "/TestServlet");
    }

    @Bean
    public ServletRegistrationBean MyServlet2() {
        return new ServletRegistrationBean(new UploadExcelServlet(), "/UploadExcelServlet");
    }
}

